package com.san.hkhospital.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.san.hkhospital.entity.SysuserExample;
import com.san.hkhospital.mapper.SysuserMapper;
import com.san.hkhospital.entity.Sysuser;
import com.san.hkhospital.service.SysuserService;
/**
 * ClassName:SysuserServiceImpl
 * PackageName:com.san.hkhospital.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
@Service
public class SysuserServiceImpl implements SysuserService{

    @Resource
    private SysuserMapper sysuserMapper;

    @Override
    public long countByExample(SysuserExample example) {
        return sysuserMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(SysuserExample example) {
        return sysuserMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer sysuserId) {
        return sysuserMapper.deleteByPrimaryKey(sysuserId);
    }

    @Override
    public int insert(Sysuser record) {
        return sysuserMapper.insert(record);
    }

    @Override
    public int insertSelective(Sysuser record) {
        return sysuserMapper.insertSelective(record);
    }

    @Override
    public List<Sysuser> selectByExample(SysuserExample example) {
        return sysuserMapper.selectByExample(example);
    }

    @Override
    public Sysuser selectByPrimaryKey(Integer sysuserId) {
        return sysuserMapper.selectByPrimaryKey(sysuserId);
    }

    @Override
    public int updateByExampleSelective(Sysuser record,SysuserExample example) {
        return sysuserMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Sysuser record,SysuserExample example) {
        return sysuserMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Sysuser record) {
        return sysuserMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Sysuser record) {
        return sysuserMapper.updateByPrimaryKey(record);
    }

}
